// Lean compiler output
// Module: Lake.Load.Config
// Imports: public import Lake.Config.Env public import Lake.Load.Manifest public import Lake.Util.FilePath
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lake_LoadConfig_lakeDir(lean_object*);
extern lean_object* l_Lake_defaultLakeDir;
static lean_object* l_Lake_LoadConfig_lakeDir___closed__0;
lean_object* l_Lake_joinRelative(lean_object*, lean_object*);
static lean_object* _init_l_Lake_LoadConfig_lakeDir___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lake_defaultLakeDir;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_LoadConfig_lakeDir(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 5);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = l_Lake_LoadConfig_lakeDir___closed__0;
x_4 = l_Lake_joinRelative(x_2, x_3);
return x_4;
}
}
lean_object* initialize_Lake_Config_Env(uint8_t builtin);
lean_object* initialize_Lake_Load_Manifest(uint8_t builtin);
lean_object* initialize_Lake_Util_FilePath(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Load_Config(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lake_Config_Env(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Load_Manifest(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lake_Util_FilePath(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_LoadConfig_lakeDir___closed__0 = _init_l_Lake_LoadConfig_lakeDir___closed__0();
lean_mark_persistent(l_Lake_LoadConfig_lakeDir___closed__0);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
